﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace xuptlibsearch
{
    public class BookDetail
    {
        public string CtrlID
        {
            get;
            set;
        }
        public string ID
        {
            get;
            set;
        }
        public string Title
        {
            get;
            set;
        }
        public string Author
        {
            get;
            set;
        }
        public string Pub
        {
            get;
            set;
        }

        public string ISBN
        {
            get;
            set;
        }
        public int Count
        {
            get
            {
                return Info.Count;
            }
        }
        public List<BookCirculation> Info
        {
            get;
            set;
        }
    }
    public class BookDetailWithDouban : BookDetail
    {

        public string image_l
        {
            get;
            set;
        }

        public string image_m
        {
            get;
            set;
        }

        public string image_s
        {
            get;
            set;
        }

        public string Summary
        {
            get;
            set;
        }

        public string Pages
        {
            get;
            set;
        }

        public string Price
        {
            get;
            set;
        }

        public string Link
        {
            get;
            set;
        }
        public RatingInfo Rating
        {
            get;
            set;
        }
    }
    public class RatingInfo
    {
        public int Heighest { get; set; }
        public int Lowest { get; set; }
        public double Avg { get; set; }
        public int Times { get; set; }
    }
}